package example6;

public class GoldCard extends Card{
    public GoldCard(String name, double balance) {
        super(name, balance);
    }
    public void pay(double payment){
        double p1 = payment*0.8;
        System.out.println(p1);
    };

}
